import axios from 'axios'

axios.defaults.timeout = 5000
axios.defaults.headers.post['Accept'] = 'application/json'
axios.defaults.baseURL = 'http://admin.tqcaifu.com'




   export default {
        //查询文章
        asyncGetCategoryPost(params){
           return axios.post('/api/post/getCategoryPost', params)
        },
        //查询产品
        asyncgetProduct(params){
            return axios.post('/api/product/getCategoryProduct', params)
        },
        //tag文章
        asyncgetTagPost(params){
            return axios.post('/api/post/getTagPost', params)
        },
        //获取资讯详情
        asyncgetPostDetail(params){
            return axios.post('/api/post/getPostDetail', params)
        },
        //获取产品详情
        asyncgetProductDetail(params){
            return axios.post('/api/product/getProductDetail', params)
        },
        //根据bannertype查询文章
        asyncgetBannerTypePost(params){
            return axios.post('/api/post/getBannerTypePost', params)
        }
   }
